package com.huashi.dealer.modular.business.article.param;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

@Data
public class StoreArticleAddParam {

    @Schema(description = "标题")
    @NotBlank(message = "标题不能为空")
    private String articleTitle;

    @Schema(description = "分类ID")
    @NotNull(message = "分类不能为空")
    private Integer categoryId;

    @Schema(description = "封面图ID")
    @NotNull(message = "封面图不能为空")
    private Integer imageId;

    @Schema(description = "虚拟阅读量")
    private Integer virtualViews;

    @Schema(description = "内容")
    @NotBlank(message = "内容不能为空")
    private String articleContent;

    @Schema(description = "显示方式(10小图 20大图)")
    private Integer showType;

    @Schema(description = "排序")
    private Integer articleSort;

    @Schema(description = "状态(0隐藏 1显示)")
    private Integer articleStatus;
}


